//
//  blockprtyAppDelegate.h
//  blockprty
//
//  Created by Sean O' Shea on 7/16/11.
//  Copyright 2011 Eye-Fi INC. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Facebook.h"

@class BlockPrtyMainView;

@interface blockprtyAppDelegate : NSObject <UIApplicationDelegate, FBSessionDelegate> {
    UIWindow *window;
	dispatch_queue_t queue;
	
	BlockPrtyMainView *mainViewController;
}

- (NSURL*) createUrlWithMethod:(NSString*)method
						  args:(NSDictionary*)args;

- (void)loadTrackToPlayForLatitude:(float)latitude longitude:(float)longitude range:(int)range authToken:(NSString *)rdioAuthToken user:(NSString *)user;
- (void)submitTasteForLatitude:(float)latitude longitude:(float)longitude artistString:(NSString *)artistList user:(NSString *)user;
- (void) addCheckin;
- (void) checkin;
+(NSString*) urlEncodeString:(NSMutableString *)urlStr;


typedef void (^SuccessBlock)(NSString *results);
typedef void (^QueryBlock)(id results);
typedef void (^FailureBlock)(NSString *error);

@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) Facebook *facebook;

@end

